package bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class Message implements Serializable{
	
	private String name;
	private String partida;
	private String text;
	private String nameReserved;
	private String dica;
	private String palavra;
	public String getMatchCreator() {
		return matchCreator;
	}

	public void setMatchCreator(String matchCreator) {
		this.matchCreator = matchCreator;
	}
	private String matchCreator;
	private int rodada;
	public String getNplayers() {
		return nplayers;
	}

	public void setNplayers(String nplayers) {
		this.nplayers = nplayers;
	}

	public String getCurrentPlayer() {
		return currentPlayer;
	}

	public void setCurrentPlayer(String currentPlayer) {
		this.currentPlayer = currentPlayer;
	}

	public String getNextPlayer() {
		return nextPlayer;
	}

	public void setNextPlayer(String nextPlayer) {
		this.nextPlayer = nextPlayer;
	}
	private String nplayers;
	private String currentPlayer;
	private String nextPlayer;
	public int getRodada() {
		return rodada;
	}

	public void setRodada(int rodada) {
		this.rodada = rodada;
	}

	public String getDica() {
		return dica;
	}

	public void setDica(String dica) {
		this.dica = dica;
	}

	public String getPalavra() {
		return palavra;
	}

	public void setPalavra(String palavra) {
		this.palavra = palavra;
	}
	private Map<String, Integer> mapPoints = new HashMap<String, Integer>();
	public Map<String, Integer> getMapPoints() {
		return mapPoints;
	}

	public void setMapPoints(Map<String, Integer> mapPoints) {
		this.mapPoints = mapPoints;
	}
	private Set<String> setOnlines = new HashSet<String>();
	private Set<String> setMatches = new HashSet<String>();
	private Action action;
	
	
	public String getPartida() {
		return partida;
	}

	public void setPartida(String partida) {
		this.partida = partida;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getNameReserved() {
		return nameReserved;
	}

	public void setNameReserved(String nameReserved) {
		this.nameReserved = nameReserved;
	}

	public Set<String> getSetOnlines() {
		return setOnlines;
	}

	public Set<String> getSetMatches() {
		return setMatches;
	}
	
	public void setSetOnlines(Set<String> setOnlines) {
		this.setOnlines = setOnlines;
	}
	
	public void setSetMatches(Set<String> setOnlines) {
		this.setOnlines = setOnlines;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

	public enum Action{
		CONNECT, DISCONNECT, SEND_ONE, SEND_ALL, USERS_ONLINE, PLAY, CREATE_GAME, MATCHES, REMOVE_MATCH, NEW_USER, NEW_WORD, RODA, GUESS, NEXT_PLAYER
		
	}
}
